package com.zc.manager.rule.engine.util;

import com.ruoyi.common.utils.spring.SpringUtils;
import com.zc.manager.rule.engine.domain.IotJob;
import com.zc.manager.rule.engine.task.IotTask;
import org.quartz.JobExecutionContext;

/**
 * 定时任务处理（允许并发执行）
 * 
 *
 */
public class QuartzJobExecution extends AbstractQuartzJob
{
    private final IotTask iotTask = SpringUtils.getBean(IotTask.class);

    @Override
    protected void doExecute(JobExecutionContext context, IotJob iotJob) throws Exception
    {
        iotTask.invokeTarget(iotJob);
    }

}
